f4638d24dd5f9d320392ef8b7b064c73c50f649c,ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ClusterConfigEntity.java,ClusterConfigEntity,equals,#Object#,202
Before Change
ClusterConfigEntity that = (ClusterConfigEntity) o;
if (configId != null ? !configId.equals(that.configId) : that.configId != null) {
return false;
}
if (clusterId != null ? !clusterId.equals(that.clusterId) : that.clusterId != null) {
return false;
}
if (type != null ? !type.equals(that.type) : that.type != null) {
return false;
}
if (tag != null ? !tag.equals(that.tag) : that.tag != null) {
return false;
}
if (stack != null ? !stack.equals(that.stack) : that.stack != null) {
return false;
}
return true;
After Change
ClusterConfigEntity that = (ClusterConfigEntity) object;
EqualsBuilder equalsBuilder = new EqualsBuilder();
equalsBuilder.append(configId, that.configId);
equalsBuilder.append(clusterId, that.clusterId);
equalsBuilder.append(type, that.type);
equalsBuilder.append(tag, that.tag);
equalsBuilder.append(stack, that.stack);